package cn.smbms.biz.impl;

import java.util.List;

import cn.smbms.biz.ProviderBiz;
import cn.smbms.dao.ProviderMapper;
import cn.smbms.entity.Provider;
import cn.smbms.entity.User;

public class ProviderBizImpl implements ProviderBiz {
	private ProviderMapper providerMapper;
	
	public void setProviderMapper(ProviderMapper providerMapper) {
		this.providerMapper = providerMapper;
	}

	@Override
	public int add(Provider provider) throws Exception {
		return providerMapper.add(provider);
	}

	@Override
	public User getUserCode(String userCode) {
		return null;
	}

	
	@Override
	public List<Provider> getProviderList(String proName, String proCode) throws Exception {
		return providerMapper.getProviderList(proName, proCode);
	}

	@Override
	public int deleteProviderById(Integer delId) throws Exception {
		return providerMapper.deleteProviderById(delId);
	}

	@Override
	public Provider getProviderById(Integer id) throws Exception {
		return providerMapper.getProviderById(id);
	}

	@Override
	public int modify(Provider provider) throws Exception {
		return providerMapper.modify(provider);
	}

	@Override
	public List<Provider> getProvider() throws Exception {
		
		return providerMapper.getProvider();
	}

	
}
